

export default {
  namespace: 'global',
  state: {
    envInfo: ''
  },

  effects: {
    *getEnv({ payload }, { put }) {
      console.log('payload', payload)
      // const { data } = yield call(queryUser, payload);
      yield put({ type: 'save', payload: { envInfo: 'prepub' } });
    },
  },

  reducers: {
    save(state, { payload }) {
      return {
        ...state,
        ...payload
      };
    },
  },
};
